using System;
using System.Web;
using System.Web.UI.WebControls;
using Framework.Library.Utilities;

namespace Framework.Module.Logging
{
    public class logingZone : Literal
    {
        
        private string zoneid = string.Empty;

        public string ZoneID
        {
            get { return zoneid; }
            set { zoneid = value; }
        }

        private string distid = string.Empty;

        public string DistID
        {
            get { return distid; }
            set { distid = value; }
        }

        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);
            Random rdm = new Random();
            Text = "<img src=\"/Modules/Logging/LogZone.aspx?logzoneid=" + ConvertUtility.ToInt32(HttpContext.Current.Request.QueryString[ZoneID]) +"&logdistid=" + HttpContext.Current.Request.QueryString[DistID] + "&rand=" + rdm.Next() + "\" width=1 height=1 border=0 alt=\"\">";
            //			this.Text = "<img src='/Modules/Loging/LogCounter.aspx?key=" + CounterKey + "&id=" + CounterID + "&value=" + CounterValue + "&rand=" + rdm.Next() + "' width=1 height=1 border=0 alt=''>";
        }
    }
}
